home *** CD-ROM | disk | FTP | other *** search
/ BCI NET / BCI NET Dec 94.iso / archives / programming / blitzbasic / blitz-list200994.lha / blitz-list / 000556_blitz-list-request_Fri Sep 2 13:52:49 1994.msg < prev    next >
Internet Message Format  |  1994-09-20  |  3KB

  1. Received: from sisvax (sisvax.sis.port.ac.uk [148.197.159.14]) by kantti.helsinki.fi (8.6.9/8.6.5) with SMTP id NAA22158 for <blitz-list@helsinki.fi>; Fri, 2 Sep 1994 13:52:21 +0300
  2. Date: Fri, 2 Sep 1994 11:45:16 +0100
  3. Message-Id: <94090211451620@sisvax.sis.port.ac.uk>
  4. From: sis3149@sisvax.sis.port.ac.uk (HANG-FIRE)
  5. To: hadmo%HADL60@email.meto.govt.uk, blitz-list@helsinki.fi
  6. Subject: Re: BitPlanesBitmap
  7. X-VMS-To: SMTP%"hadmo%HADL60@email.meto.govt.uk"
  8. X-VMS-Cc: BLITZLIST
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset="us-ascii"
  11. Content-Transfer-Encoding: 7bit
  12. X-Status: 
  13. Status: RO
  14.  
  15. Date sent:  
  16.  
  17. >
  18. >  Has anyone managed to get 'BitPlanesBitmap' to work?
  19. >  I think the syntax is:
  20. >
  21. >      BitPlanesBitmap SrcBitmap,DestBitmap,Bitplane
  22. >
  23. >  What sort of argument should 'Bitplane' be? Just a number like 0,1 or 2?
  24. >
  25. >  Say I've got a 3 plane bitmap with some shapes on it, some of them in 
  26. >  colour 1.  How do I copy this bitmap to a different 1 plane bitmap, so the
  27. >  new bitmap has only the shapes in colour 1 on it?
  28.  
  29. ARRRRRGGGGGHHHHHHHHH.   NOT ANOTHER QUESTION ABOUT BITPLANESBITMAP!
  30.  
  31. Oh well, here we go again.......
  32.  
  33. This command lets you select the bitplanes from one bitmap and copy their
  34. POINTERS to another bitmap.  How do you select the different planes?  The
  35. Bitplane parameter should be a binary number with a bit set for each plane you
  36. want to grab from the source.  Bit 0 means plane 0, bit 1 plane 1 etc.
  37.  
  38. E.g.
  39.  
  40.             Say we have an 8 bitplane bitmap (256 colours).  We want to
  41. display this on a 5 bitplane copperlist so that we don't have to waste memory
  42. reserving another bitmap.  What we'd do is:
  43.  
  44.         BitplanesBitmap source#,dest#,%11111
  45.  
  46. This would grab the first 5 bitplanes from source and put them in dest.  The
  47. dest# bitmap can then be used as a normal bitmap with one exception - you
  48. cannot do a copybitmap on it (I hope thats the only exception).
  49.  
  50. You can also do special effects with the command, for example you can grab the
  51. top bitplane of a bitmap and just draw in that.  This will cause colour changes
  52. in the picture etc.  You can also do nice fading etc.....
  53.  
  54. For more info, please mail acid!    ;-)  (Sorry Simon - you fault for not
  55. documenting the commands fully!).
  56.  
  57.  
  58.  
  59. Steve Mc.
  60.  
  61. +---------------------------------------------------------------------------+
  62. | Stephen McNamara  Reflective Images|  My map editor's NOT a bit buggy ;-) |
  63. |====================================+======================================|
  64. | A1200/170HD/6MB/Blitz2             | Current project : BlitzBombers AGA   |
  65. |                                    | [#################################:] |
  66. |          >>> HANG-FIRE <<<         | Current Project : RI Libs v???       |
  67. |                                    | [###########################:::::::] |
  68. |                                    | Current Project : RI Map Editor v1.2 |
  69. |  sis3149@sisvax.sis.port.ac.uk     | [#################################:] |
  70. \____________________________________|______________________________________/
  71.